export function findMapBreadcrump(userMenus: any, currentPath: string): any {
  const breadcrumbs: any[] = [];
  for (const menu of userMenus) {
    if (menu.type == 1) {
      const findMenu = findMapBreadcrump(menu.children ?? [], currentPath);
      if (findMenu) {
        breadcrumbs.push({ name: menu.title, path: menu.path });
        breadcrumbs.push({ name: findMenu.title, path: menu.path });
        return breadcrumbs;
      }
    } else if (menu.type == '2' && menu.path == currentPath) {
      return menu;
    }
  }
}
